package starter.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 缓存序列化配置
 *
 * @author Aimy
 * @Date 2021/6/17 10:29
 **/
@Setter
@Getter
@Configuration
@ConfigurationProperties(prefix = "qbd.cache.serial")
public class CacheSerialConfig {

    /**
     * 默认关闭
     */
    private boolean enable = false;

    /**
     * 队列大小，默认为100
     */
    private Integer queueSize = 100;

    /**
     * 监听线程数（队列数）默认为4
     */
    private Integer monitorThreadSize = 4;
}
